import request from '@/utils/request'

// 添加设备
export function addEquipment(data){

    return request({
      url: '/management/equipment/addEquipment',
      method: 'post',
      data: data
    })
  }
  // 查询列表
export function getEquipmentListByAreaId(id){
  console.log(5555,id)
    return request({
        url: '/management/equipment/getEquipmentListByAreaId',
      method: 'get',
      params: {
        id: id
      }
    })
  }
export function list(data){
  return request({
    url: '/management/equipment/list',
    method: 'get',
    params: data
  })
}
  // 添加设备
export function updateEquipment(data){

  return request({
    url: '/management/equipment/updateEquipment',
    method: 'post',
    data: data
  })
}
